<?php



class ComponentesMapBuilder {

	
	const CLASS_NAME = 'lib.model.map.ComponentesMapBuilder';

	
	private $dbMap;

	
	public function isBuilt()
	{
		return ($this->dbMap !== null);
	}

	
	public function getDatabaseMap()
	{
		return $this->dbMap;
	}

	
	public function doBuild()
	{
		$this->dbMap = Propel::getDatabaseMap('propel');

		$tMap = $this->dbMap->addTable('componentes');
		$tMap->setPhpName('Componentes');

		$tMap->setUseIdGenerator(true);

		$tMap->addPrimaryKey('ID_COMPONENTE', 'IdComponente', 'int', CreoleTypes::INTEGER, true, null);

		$tMap->addColumn('ID_COMPONENTECONCRETO', 'IdComponenteconcreto', 'int', CreoleTypes::INTEGER, true, null);

		$tMap->addForeignKey('ID_PAGINA', 'IdPagina', 'int', CreoleTypes::INTEGER, 'paginas', 'ID_PAGINA', true, null);

		$tMap->addForeignKey('ID_TIPOCOMPONENTE', 'IdTipocomponente', 'int', CreoleTypes::INTEGER, 'tipos_componentes', 'ID_TIPOCOMPONENTE', true, null);

	} 
} 